﻿@model IEnumerable<ThesisSystem.Models.Department>

<!DOCTYPE html>

<html>
<head>
    <title>部系信息</title>
    @*<link href="@Url.Content("~/Content/CSS/Common.css")" rel="stylesheet" type="text/css" />*@
    @Content.Script("jquery-min.js",Url)
    @Content.Script("jquery.unobtrusive-ajax.min.js",Url)
</head>
<body>
    <table class="tblStudentInfo">
        <tr>
            <th>
                部系
            </th>
            <th></th>
        </tr>

    @foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.DepartmentName)
            </td>
            <td>
                @Html.ActionLink("修改", "Edit", new { id=item.DepartmentID }) |
                @Ajax.ActionLink("选择","Index","GClass",new{DepartmentID=item.DepartmentID},new AjaxOptions{ UpdateTargetId="gClassShow", HttpMethod="GET"}) |
                @Html.ActionLink("删除", "Delete", new { id=item.DepartmentID })
            </td>
        </tr>
    }
    </table>
    <div id="gClassShow"></div>
</body>
</html>